import React, {Component} from 'react';
import PropTypes from 'prop-types';
import '../../font/iconfont.css';

class Icon extends Component {
    static propTypes = {
        type: PropTypes.string,
    }
    // constructor(props) {
    //     super(props);
    // }
    render() {
        const {type} = this.props;
        return (
            <i className={`iconfont icon-${type}`}></i>
        )
    }
}
export default Icon;